package com.shelpe.services.sinbadgateway.entity.jpa;

public enum DriveType {
	manual(0), auto(1), mix(2);
	private int value;

	private DriveType(int v){
		this.value = v;
	}

	public int getValue() {
		return this.value;
	}
	
	public static DriveType from(int value){
		DriveType en = DriveType.auto;
		for (DriveType s : DriveType.values()) {
			if (s.getValue() == value) {
				en = s;
				break;
			}
		}
		return en;
	}
}